//档案导出
function exportDa(templateId, type) {
    var row = grid.getSelected();
    if (row) {
        window.location.href = encodeURI("/azbj/azbjgl/dcda/exportData?priNum=" + row.priNum + "&templateId=" + templateId + "&type=" + type);
    } else {
        mini.alert("请选中一条记录");
    }
}

//查看
function toViewHjqc() {
    var row = grid.getSelected();
    mini.open({
        url: "/azbj/bjdxInfo/hjqc/toViewTabs/view?priNum=" + row.priNum,
        title: "查看",
        width: "60%",
        height: "80%",
        allowDrag: true,
        allowResize: false,
        showCloseButton: true,
        onload: function () {
        },
        ondestroy: function (action) {
            grid.reload();
        }
    });
}